﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AnalysisVideoSubtitle
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Init.Start();
            if (Data.APP_ID.IsNullOrWhiteSpace() ||
               Data.API_KEY.Trim().IsNullOrWhiteSpace() ||
               Data.SECRET_KEY.Trim().IsNullOrWhiteSpace())
            {
                BaiduParameFrm baiduParameFrm = new BaiduParameFrm();
                if (baiduParameFrm.ShowDialog() == DialogResult.OK)
                    Application.Run(new MainFrm());
            }
            else
                Application.Run(new MainFrm());
        }
    }
}
